package com.mep.auth.feign;

import com.mep.auth.model.SysMenu;
import com.mep.common.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "story-auth/menu", path = "/")
public interface IFeignSysMenuApi {
//    @ApiOperation(value="01.保存菜单信息",notes="问题点:保存菜单信息")
//    @ApiOperationSupport(order = 1, author = "lyl")
    @PostMapping(value="/save")
    HttpResult save(@RequestBody SysMenu record);

//    @ApiOperation(value="02.删除菜单信息",notes="问题点:删除菜单信息")
//    @ApiOperationSupport(order = 2, author = "lyl")
    @PostMapping(value="/delete")
    HttpResult delete(@RequestBody List<SysMenu> records);

//    @ApiOperation(value="03.根据用户名查询菜单树信息",notes="问题点:根据用户名查询菜单树信息")
//    @ApiOperationSupport(order = 3, author = "lyl")
    @PostMapping(value="/findNavTree")
    HttpResult findNavTree(@RequestParam String userName);

//    @ApiOperation(value="04.查询整个菜单树信息",notes="问题点:查询整个菜单树信息")
//    @ApiOperationSupport(order = 4, author = "lyl")
    @PostMapping(value="/findMenuTree")
    HttpResult findMenuTree();
}
